﻿using System;
using System.Collections.Generic;
using System.Linq;
using Metro.AxisFromSKY.Model;

namespace Metro.AxisFromSKY.Service
{
    internal class DateTimeGroupedEqualityComparer : IEqualityComparer<IGrouping<DateTime, AutoAxis>>
    {
        public bool Equals(IGrouping<DateTime, AutoAxis> x, IGrouping<DateTime, AutoAxis> y)
        {
            return x.Key == y.Key;
        }

        public int GetHashCode(IGrouping<DateTime, AutoAxis> obj)
        {
            return obj.Key.GetHashCode();
        }
    }
}